import request from '../utils/request'
/** 获取需要签字的数据*/
export function allsigndata(data: Object) {
  return request({
    url: `/soms/leads/sign/allsigndata`,
    method: 'post',
    data
  })
}
/** 保存签字信息*/
export function savesign(data: Object) {
  return request({
    url: `/soms/leads/sign/savesign`,
    method: 'post',
    data
  })
}
/** 获取工友在所选项目下的总的记工信息*/
export function gettotal(data: Object) {
  return request({
    url: `/soms/records/work/gettotal`,
    method: 'post',
    data
  })
}
/** 获取老板*/
export function getboss(data: Object) {
  return request({
    url: `/soms/acts/boss/foreman/getboss`,
    method: 'post',
    data
  })
}
/** 获取老板*/
export function workerinfo(workerId: String) {
  return request({
    url: `/soms/leads/sign/workerinfo/${workerId}`,
    method: 'get'
  })
}
/** 获取七牛云token*/
export function getQiniuToken() {
  return request({
    url: '/dfs/qiniu/token',
    method: 'GET'
  })
}
